package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.WareSkuTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 仓库服务Feign接口
 *
 * @author DuGuanghan
 * @since 2024-04-18 16:32:43
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {
    /**
     * 获取sku的库存信息
     *
     * @param skuIds SKU ID
     * @return {@link R }<{@link List }<{@link WareSkuTo }>>
     * @author DuGuanghan
     * @since 2024-04-07 17:13:21
     */
    @PostMapping("/ware/waresku/hasstock")
    R hasStock(@RequestBody List<Long> skuIds);

}
